//
//  Team9ExpertFootFaceCell.m
//  Team9Project
//
//  Created by 朱嘉祺 on 15/10/19.
//  Copyright © 2015年 apple. All rights reserved.
//

#import "Team9ExpertFootFaceCell.h"
#import "Team9JQHeader.h"
#import "Team9ExpertLikeUserModel.h"

@implementation Team9ExpertFootFaceCell

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if (self) {
        self.faceImageView = [UIImageView new];
//        _faceImageView.backgroundColor = [UIColor yellowColor];
        [self addSubview:self.faceImageView];
        [self.faceImageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.edges.equalTo(self).insets(UIEdgeInsetsMake(0, 0, 0, 0));
        }];
        [self updateConstraintsIfNeeded];
        self.faceImageView.layer.cornerRadius = 20 * WIDTH / 375 ;
        self.faceImageView.layer.masksToBounds = YES;
    }
    
    self.faceImageView.image = [UIImage imageNamed:@"like"];
    
    return self;
}
- (void)setModel:(Team9ExpertLikeUserModel *)model{
    if (_model != model) {
        _model = model;
    }
    [Team9Tool sd_imageView:_faceImageView image:self.model.author_face placeholderImage:@"333"];
}
@end
